if(!dojo._hasResource["opm.widgets.component.Search"]){
dojo._hasResource["opm.widgets.component.Search"] = true;
dojo.provide("opm.widgets.component.Search");
dojo.require("dijit._Widget");
dojo.require("opm.widgets.Ajax");
dojo.require("opm.widgets.GenericSearchForm");
dojo.declare("opm.widgets.component.Search",dijit._Widget,
{
   contentId:"",
   _GENERIC_VIEW_FORM:"opm.widgets.component.Search.view",

   constructor:function(args){
      this.setAtts(args);
   },
   setAtts:function(args){
      this.contentId = args.contentId;
   },

   showSearchForm:function(ajaxViewUrl){
      var args = {
         ajaxCallUrl: ajaxViewUrl,
         ajaxCallType:'callXhrGetJson',
         contentId: this.contentId,
         widgetId: this._GENERIC_VIEW_FORM
      };
      var genericForm = OPM.genericSearchWidget(args);
      genericForm.createForm();
   }
});
}
